package metier;

import java.util.Date;
import java.util.Vector;

public class Stage {
	
		private Integer idStage;
		private String libelleStage;
		private Date dateDebut;
		private Date dateFin;
		private Integer idCategorie;
		
		
		public Stage(Integer idStage, String libelleStage, Date dateDebut,
				Date dateFin, Integer idCategorie) {
			this.idStage = idStage;
			this.libelleStage = libelleStage;
			this.dateDebut = dateDebut;
			this.dateFin = dateFin;
			this.idCategorie = idCategorie;
		}
		
		public Integer getIdStage() {
			return idStage;
		}
		public void setIdStage(Integer idStage) {
			this.idStage = idStage;
		}
		public String getLibelleStage() {
			return libelleStage;
		}
		public void setLibelleStage(String libelleStage) {
			this.libelleStage = libelleStage;
		}
		public Date getDateDebut() {
			return dateDebut;
		}
		public void setDateDebut(Date dateDebut) {
			this.dateDebut = dateDebut;
		}
		public Date getDateFin() {
			return dateFin;
		}
		public void setDateFin(Date dateFin) {
			this.dateFin = dateFin;
		}
		public Integer getIdCategorie() {
			return idCategorie;
		}
		public void setIdCategorie(Integer idCategorie) {
			this.idCategorie = idCategorie;
		}

		/**
		 * @return
		 */
		public Vector<Object> getVector(){
			Vector<Object> vector = new Vector<Object>();
			vector.add(this.getIdStage().toString());
			vector.add(this.getLibelleStage());
			return vector;
		}
		
		/* (non-Javadoc)
		 * @see java.lang.Object#toString()
		 */
		@Override
		public String toString() {
			return libelleStage;
		}
		
		
}
